package com.terren.spider.db.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.terren.spider.db.basic.BasicServiceSupportImpl;
import com.terren.spider.db.service.CommentsService;
import com.terren.spider.entity.biz.UnionComments;
import com.terren.spider.entity.biz.UnionUserInfo;

@Service("commentsService")
public class CommentsServiceImpl extends BasicServiceSupportImpl implements CommentsService{
	private final String SQL_MAPPER = "commentsMapper.";

	@Override
	public void saveUnionComments(List<UnionComments> items) throws Exception {
		
		basicDao.save(SQL_MAPPER+"saveUnionComments", items);
	}

	@Override
	public void saveUnionUserInfo(List<UnionUserInfo> items) throws Exception {
		basicDao.save(SQL_MAPPER+"saveUnionUserInfo", items);
	}

	@Override
	public List<String> getThePaperIDList(UnionComments unionComments) throws Exception {
		return basicDao.findForList(SQL_MAPPER+"getThePaperIDList", unionComments);
	}

	@Override
	public List<String> getThePaperUseridList(UnionUserInfo unionUserInfo) throws Exception {
		return basicDao.findForList(SQL_MAPPER+"getThePaperUseridList", unionUserInfo);
	}
	
}
